/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.context.properties;


/**
 *
 * @author Rdelacruz
 */
public class AplicacionProperties {
    private boolean enProduccion;
    private String ruta = "";
    private String version;
    
    private String patronCargaAutomaticaJob;
    
    private String getRutaParaConcatenar() {
        return ruta.isEmpty() ? ruta : ruta+"/";
    }
    
    public String getRutaJdbcProperties() {        
        return getRutaParaConcatenar()+"jdbc.properties";
    }
    
    public String getRutaEnahoProperties() {        
        return getRutaParaConcatenar()+"enaho.properties";
    }
    
    public String getRutaContextProperties() {        
        return getRutaParaConcatenar()+"context.properties";
    }

    public String getRuta() {
        return ruta;
    }

    public void setRuta(String ruta) {
        this.ruta = ruta;
    }    
        
    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }    

    public boolean isEnProduccion() {
        return enProduccion;
    }

    public void setEnProduccion(boolean enProduccion) {
        this.enProduccion = enProduccion;
    }   

    public String getPatronCargaAutomaticaJob() {
        return patronCargaAutomaticaJob;
    }

    public void setPatronCargaAutomaticaJob(String patronCargaAutomaticaJob) {
        this.patronCargaAutomaticaJob = patronCargaAutomaticaJob;
    }
    
    
}
